package com.woniuxy.rbac.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.rbac.entity.Subject;
import com.woniuxy.rbac.mapper.SubjectMapper;
import com.woniuxy.rbac.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: 老谭（<a href="http://www.woniuxy.com">蜗牛学苑</a>）
 */
@Service
public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> implements SubjectService {

   @Autowired
   private SubjectMapper subjectMapper;
    @Override
    public void saveSubject(Subject subject) {
        subjectMapper.insert(subject);
    }
}
